<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateAddressInfoTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('address_info', function (Blueprint $table) {
            $table->increments('id');
            $table->integer('pid')->default(0)->commit("父级id");
            $table->string('province')->nullable()->commit("省份");
            $table->string('city')->nullable()->commit("城市");
            $table->string('area')->nullable()->commit("地区");
            $table->string('town')->nullable()->commit("镇");
            $table->softDeletes();
            $table->timestamps();
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        //
    }
}
